#include "go.h"
#include "record.h"
#include "ai_algo/MoveGenerator.h"

Go::Go()
{
    init();

    record = new Record(); //with a core been created,
                           //this record is also created
                           //to record every single step
                           //and we are able to recover a certain moment

    zeroStep = 0; //if set handicaps, this pointer will be redirect to a new Step obj

    moveGen = 0;
    latestStep = 0;
    tempLatestStep = 0;

    //init parameters of game-settings
    handicapsValue = 0;
}

Go::~Go()
{
    delete record; //necessary to delete some new obj like steps objs
    if(zeroStep!=0) delete zeroStep;
    if(moveGen!=0) delete moveGen;
}







